MailPoet\Newsletter\NewslettersRepository S

Total Complexity 47
Dependencies 16
Dependents 48
Total lines 587
Lines of code 459
Logical lines of code 104
Comment lines 61
Methods 27
Properties 1

Methods 27

Method Rating Maintainability Complexity Lines of code
getArchives()
A
43 7 49
getAnalytics()
S
42 5 51
bulkRestore()
S
48 3 36
bulkTrash()
S
48 3 35
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedOrInvalidTask()
S
56 1 19
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findActiveByTypes()
S
61 1 14
findDraftByTypes()
S
61 1 14
getStandardNewsletterList()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
getWpPostIds()
S
63 1 12
deleteByIds()
S
64 1 11
getGutenbergNewsletterSentCount()
S
64 1 11
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
getEntityClassName()
S
82 1 3
getTotalGutenbergNewsletterCount()
S
67 1 9
getCountOfEmailsWithWPPost()
S
68 1 8
getCorruptNewsletters()
S
78 1 3
setAsCorrupt()
S
74 1 5
fetchChildrenIds()
S
65 1 10
__construct()
S
76 1 4